package com.qububu.emporium.search.dto;

import com.qububu.utils.SystemUtil;

public class HotSearchWordDto {

	private String hotId;
	private String hotName;
	private String goodsInfoId;
	
	public String getHotId() {
		return hotId;
	}
	
	public String getHotName() {
		return hotName;
	}
	public void setHotName(String hotName) {
		this.hotName = hotName;
	}
	
	public String getGoodsInfoId() {
		return goodsInfoId;
	}
	
	/**
	 *  得到加密的hotId, goodsInfoId
	 */
	public HotSearchWordDto(String hotId, String goodsInfoId){
		this.hotId = hotId;
		this.goodsInfoId = goodsInfoId;
	}
	
	/**
	 *  得到未加密的hotId, goodsInfoId
	 */
	public HotSearchWordDto(long hotId, long goodsInfoId){
		this.hotId = SystemUtil.encrypt(String.valueOf(hotId));
		this.goodsInfoId = SystemUtil.encrypt(String.valueOf(goodsInfoId));
	}
	
}
